package com.ruoyi.interfaced.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.interfaced.mapper.ShopCommodityInterMapper;
import com.ruoyi.interfaced.domain.ShopCommodityInter;
import com.ruoyi.interfaced.service.IShopCommodityInterService;

/**
 * orderService业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-25
 */
@Service
public class ShopCommodityInterServiceImpl implements IShopCommodityInterService
{
    @Autowired
    private ShopCommodityInterMapper shopCommodityMapper;

    /**
     * 查询order
     * 
     * @param id order主键
     * @return order
     */
    @Override
    public ShopCommodityInter selectShopCommodityById(Long id)
    {
        return shopCommodityMapper.selectShopCommodityById(id);
    }

    /**
     * 查询order列表
     * 
     * @param shopCommodity order
     * @return order
     */
    @Override
    public List<ShopCommodityInter> selectShopCommodityList(ShopCommodityInter shopCommodity)
    {
        return shopCommodityMapper.selectShopCommodityList(shopCommodity);
    }

    /**
     * 新增order
     * 
     * @param shopCommodity order
     * @return 结果
     */
    @Override
    public int insertShopCommodity(ShopCommodityInter shopCommodity)
    {
        return shopCommodityMapper.insertShopCommodity(shopCommodity);
    }

    /**
     * 修改order
     * 
     * @param shopCommodity order
     * @return 结果
     */
    @Override
    public int updateShopCommodity(ShopCommodityInter shopCommodity)
    {
        return shopCommodityMapper.updateShopCommodity(shopCommodity);
    }

    /**
     * 批量删除order
     * 
     * @param ids 需要删除的order主键
     * @return 结果
     */
    @Override
    public int deleteShopCommodityByIds(Long[] ids)
    {
        return shopCommodityMapper.deleteShopCommodityByIds(ids);
    }

    /**
     * 删除order信息
     * 
     * @param id order主键
     * @return 结果
     */
    @Override
    public int deleteShopCommodityById(Long id)
    {
        return shopCommodityMapper.deleteShopCommodityById(id);
    }
}
